-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger improvements #325
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #325 +/- ##
==========================================
+ Coverage 89.69% 89.76% +0.06%
==========================================
Files 28 28
Lines 3183 3184 +1
Branches 579 581 +2
==========================================
+ Hits 2855 2858 +3
+ Misses 172 171 -1
+ Partials 156 155 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excelente! Te dejé unas preguntas
return failureResult(`Unknown reference ${unlinkedNode.name}`) | ||
} else return failureResult(`Unknown reference at ${unlinkedNode.sourceInfo}`) | ||
} | ||
|
||
const result = interpreter.exec(sentenceOrImport) | ||
const result = frame ? | ||
interpreter.do(function () { return interpreter.evaluation.exec(sentenceOrImport, frame) }) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
me llamó la atención ver el function ahí en lugar de la lambda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No tiene ningun motivo de ser 😅 , en esta situacion creo que no hay diferencia entre usar lambdas o funciones anonimas.
executionDirector.resume() | ||
const { error, result } = interprete(new Interpreter(directedInterpreter.evaluation), 'energia', directedInterpreter.evaluation.currentFrame) | ||
expect(error).to.be.undefined | ||
expect(result).to.equal('100') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏼 👏🏼 👏🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dale que vaaaaa 💯 🥇 ATR PRrito malvado 🐕
Este PR tiene dos cambios principales
interprete
ahora acepta un frame que actua como el contexto para interpretar la linea (esto es importante para el debugger). Si no defaultea al repl, como hacia antes.